{include file="common/header.tpl"}
<script src="includes/js/option.js" type="text/javascript"></script>
<body>
{assign var="options" value="current"}
{include file="common/toptab.tpl"}
<div id="tabs4">
</div>
<div id="option_response" class="wrap ajaxResponse"></div>

<!-- Build the page here -->
<div class="wrap" style="min-height: 400px">
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
	<tr>
	<td width="54px" height="43px" class="fr_lefttop"></td>
	<td height="43px" class="fr_centertop" ></td>
	<td width="48px" height="43px" class="fr_righttop"></td>
	</tr>
	<tr>
	<td width="54px" class="fr_leftmiddle" >&nbsp;</td>
	<td class="fr_centermiddle">
<h2>{t}Options{/t}</h2>
{if $smarty.session.u_isadmin == "1"}
<form name="options" id="options" method="post" 
	action="?mod={$smarty.get.mod}"
	onsubmit="return saveOption('options', 'option_response');">
	<input type="hidden" name="act" value="update" />
	<table class="editform" width="50%" align="center" cellpadding="5">
		{* 
		This is an example option structure of this site,
		developer should use this template when he want
		to add more new option in the future. 
		Note: input's name is key name of key field in database
			Refer table option for more view
		*}
		<tr>
			<th width="33%" scope="row" valign="middle" align="right">
			<label for="page_title">{t}Page Title{/t}</label></th>
			<td width="67%">
			<input name="page_title" id="page_title" type="text" value="" 
					size="40" maxlength="100"/>
			</td>
		</tr>
	</table>
	<p class="submit" align = "right">
		<input type="submit" name="button" value="{t escape=no}Update Option &raquo;{/t}" />
	</p>
</form>

{include file="lang_config.tpl"}
{else}
{t}Access denied{/t}
{/if}
</td>
	<td width="48px" class="fr_rightmiddle"></td>
	</tr>
	<tr>
	<td width="54px" height="60px" class="fr_leftbot" ></td>
	<td height="60px" class="fr_centerbot"></td>
	<td width="48px" height="60px" class="fr_rightbot" ></td>
	</tr>
</table>
</div>
</body>